package inventoryServe.mapper;


import inventoryServe.po.Inventory;
import inventoryServe.po.StoreManage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2021-06-22
 */
public interface StoreManageMapper  {
    int addStoreManage(StoreManage storeManage);
    List<StoreManage> allStoreManage(StoreManage storeManage);
    StoreManage storeManageOfId(Integer id);
    int isCheck(StoreManage storeManage);
    int deleteStoreManage(Integer id);

    // 查看库存是否存在
    int isInInventory(Inventory inventory);
    int addInventory(Inventory inventory);
    int editAddInventory(Inventory inventory);
    // 查询库存数量
    int getInventoryNum(@Param("storeId") Integer storeId, @Param("productId") Integer productId);
    int editSubInventory(Inventory inventory);
    //
    List<StoreManage> storeManageChart(StoreManage storeManage);
}
